<extend name="Public/base" />
<block name="content">
	<div id="content">
		<div id="content-header">
			<div id="breadcrumb">
				<a href="#" title="友情提示" class="tip-bottom"><i class="icon-home"></i>友情提示</a>
			</div>
		</div>
		<div class="widget-content">
			<div class="error_ex">
				<h2 >友情提示</h2>
				<h3><?php echo($error); ?></h3>
				<h5><b id="wait"><?php echo($waitSecond); ?></b>秒后页面将自动跳转</h5>
				
				<a id="href" class="btn btn-warning btn-big" href="<?php echo($jumpUrl); ?>">立即跳转</a> 
				<button id="btn-stop" class="btn btn-warning btn-big" type="button" onclick="stop()">停止跳转</button> 
			</div>
				
		</div>
	</div>
<script type="text/javascript">
/**
 * @todo 页面跳转
 * @author PHP@妖孽 <dino_ma@163.com>
 */
$(function($) {
	var wait = $('#wait').text(),href = $('#href').attr('href');
	var interval = setInterval(function(){
		var time = --wait;
		$('#wait').text(time);
		if(time <= 0) {
			window.location.href = href;
			clearInterval(interval);
		};
	}, 1000);
	window.stop = function (){
		clearInterval(interval);
	}
});
</script>
</block>
